<?php

        /*
         *
         *      会员系统入口文件
         *      Author: Oyghan
         *
         */


        //引入函数库文件
        include './Functions/functions.php';

        //自动加载类
        function __autoload($controllerName){
                require "./Controller/{$controllerName}.class.php";
        }
        //实例化控制器
        $c = isset($_GET['c'])?$_GET['c']:'Index';
        $controller = $c.'Controller';
        $run = new $controller;
        //方法
        $action = isset($_GET['a'])?$_GET['a']:'Index';
        $run->$action();

?>